<?php
/* @var $this SpecialiteController */
/* @var $model Specialite */
/* @var $form CActiveForm */
?>

<style>

.data {
    background: none repeat scroll 0 0 #f5f5f5;
    border: 1px solid lightgrey;
    border-radius: 10px;
    padding: 10px;
    width: 350px;
}

</style>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'specialite-form',
	// Please note: When you enable ajax validation, make sure the corresponding
	// controller action is handling ajax validation correctly.
	// There is a call to performAjaxValidation() commented in generated controller code.
	// See class documentation of CActiveForm for details on this.
	'enableAjaxValidation'=>false,
)); ?>

	<?php echo $form->errorSummary($model); ?>

	<div class="data">
		<?php echo $form->labelEx($model,'libelle'); ?>
		<?php echo $form->textField($model,'libelle',array('size'=>30,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'libelle'); ?>
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Créer' : 'Sauvegarder', array('class' => 'btn')); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->
